/// data : [] ,{} 返回原始数据，由调用者自己处理
/// errorCode : 0
/// errorMsg : ""

class BaseResp {
  BaseResp({
    dynamic? data,
    int? errorCode,
    String? errorMsg,
  }) {
    _data = data;
    _errorCode = errorCode;
    _errorMsg = errorMsg;
  }

  BaseResp.fromJson(dynamic json) {
    _data = json['data'];
    _errorCode = json['errorCode'];
    _errorMsg = json['errorMsg'];
  }

  dynamic? _data;
  int? _errorCode;
  String? _errorMsg;

  dynamic? get data => _data;

  int? get errorCode => _errorCode;

  String? get errorMsg => _errorMsg;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['data'] = data;
    map['errorCode'] = _errorCode;
    map['errorMsg'] = _errorMsg;
    return map;
  }
}
